<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body>
<div class="container-fluid">
    <div class="row">
        <form class="card-body" id="edit-form">
            <input id="${pk.simpleName}" name="${pk.simpleName}" th:value="${r"${"+"${sname}.${pk.simpleName}"+"}"}" type="hidden">
        <#list fields as f >
            <#if !f.pk>
            <div class="form-group">
                <div class="form-inline">
                    <label class="col-xs-2 col-sm-2 col-md-2 col-lg-2 col-form-label">${f.name}：</label>
                    <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">
                        <input id="${f.simpleName}" name="${f.simpleName}" th:value="${r"${"+"${sname}.${f.simpleName}"+"}"}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            </#if>
        </#list>
            <div class="form-group">
                <div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 offset-xs-2 offset-sm-2 offset-md-2 offset-lg-2">
                    <button type="submit" class="btn btn-primary">提交</button>
                </div>
            </div>
        </form>
    </div>
</div>
</div>
</div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" th:src="@{/app/${sname}/edit.js}"></script>
</body>
</html>
